package com.tomasio.projects.welcome.events
{
	import com.tomasio.projects.welcome.model.CameraIP;
	
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	
	public class CameraServiceEvent extends Event
	{
		public static var CAMERA_LOADED_EVENT:String = "cameraLoadedEvent";
		public static var CAMERAS_LOADED_EVENT:String = "camerasLoadedEvent";
		public static var CAMERA_REMOVED_EVENT:String = "cameraRemovedEvent";
		public static var CAMERA_CREATED_EVENT:String = "cameraCreatedEvent";
		public static var CAMERA_UPDATED_EVENT:String = "cameraUpdatedEvent";
		
		
		public var camera:CameraIP;
		public var cameras:ArrayCollection;
		
		public function CameraServiceEvent(type:String, camera:CameraIP, cameras:ArrayCollection)
		{
			super(type, true);
			this.camera = camera;
			this.cameras = cameras;
		}
		override public function clone():Event {
			return new CameraServiceEvent(type, camera, cameras);
		}
	}
}